/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/views/layouts/index'),
    redirect: '/home',
    meta: {
      title: '首页',
      keepAlive: false
    },
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('@/views/home/index'),
        meta: { title: '首页', keepAlive: false }
      },
      {
        path: '/layout/basic',
        name: 'layout-basic',
        component: () => import('@/views/layout/basic'),
        meta: { title: '布局', keepAlive: false }
      },
      {
        path: '/layout/button',
        name: 'layout-button',
        component: () => import('@/views/layout/button'),
        meta: { title: '按钮如何居中', keepAlive: false }
      },
      {
        path: '/layout/position',
        name: 'layout-position',
        component: () => import('@/views/layout/position'),
        meta: { title: '布局组件', keepAlive: true }
      },
      {
        path: '/store/basic',
        name: 'basic-store',
        component: () => import('@/views/store/basic'),
        meta: { title: 'store存取使用', keepAlive: true }
      }
    ]
  }
]
